package com.converse.imageProcessor.imgProcess;

import android.graphics.Bitmap;

/**
 * Author: Administrator
 * Date: 2021/12/16
 * Project: DiamondReader
 * Description:
 */
public class ImgProcessPresenter {
    private ImgProcessView mView;
    private ImgProcessModel mModel;

    public ImgProcessPresenter(ImgProcessView view, ImgProcessModel model) {
        mView = view;
        mModel = model;
    }

    public void startProcessImg(int srcId){
        Bitmap bitmap = mModel.getBitmapByRscId(mView.getContext(), srcId);
        if(bitmap!=null){
            mView.onGetResult(bitmap);
        }
    }
}
